package main

import (
	"fmt"
	"os/exec"
	"time"
)

func main() {
	now := time.Now()
	closeTime := time.Date(now.Year(), now.Month(), now.Day(), 17, 30, 0, 0, time.Local)
	timer := time.NewTimer(closeTime.Sub(now))
	<-timer.C
	err := exec.Command("shutdown", "-s", "-t", "10").Run()
	if err != nil {
		fmt.Println(err)
	}
}
